package team02.client.core.config;

import team02.server.core.parser.CSVParser;

public class ConfigLangJp implements Config {

	@Override
	public String getParserMessage(int type) {

		ParserState state = CSVParser.parserState;
		switch (type) {
			case SYNTAX_ERROR:
				return "[文法のエラー]" +(state.getToken()==null?"":" 記号 '" + state.getToken()) + "' 行 " + state.getLineNumber();
			case SEMANTIC_ERROR:
				return "[意味のエラー] 記号 '" + state.getToken() + "' 行 " + state.getLineNumber();
			
			default:
				return null;
		}
	}
}
